package cn.openea.perpartner.payment.config;
import cn.openea.perpartner.common.core.filter.MyHttpServletRequestFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Weird077
 * @description TODO
 * @date 2022-11-02 15:45
 */
@Configuration
public class PayFilterConfig {
    @Bean
    public FilterRegistrationBean<MyHttpServletRequestFilter> filterRegistration() {
        FilterRegistrationBean<MyHttpServletRequestFilter> registration = new FilterRegistrationBean<>();
        registration.addUrlPatterns("/*");
        registration.setFilter(new MyHttpServletRequestFilter());
        return registration;
    }
}
